package com.yl.module.property.domain;


import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 资产维修记录表 实体
 * @author makejava
 * @date 2024-10-23 15:54:16
 */
@Data
@Accessors(chain = true)
@TableName("property_upkeep")
@ApiModel(value = "PropertyUpkeep", description = "资产维修记录表")
public class PropertyUpkeep extends Model<PropertyUpkeep> implements Serializable {
	private static final long serialVersionUID = -70370931833686473L;

    @ApiModelProperty(value = "资产维修记录表-主键id")
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

	@ApiModelProperty(value = "资产一级分类id 来源property_type.id")
	@TableField("`property_type_id`")
    private Integer propertyTypeId;

	@ApiModelProperty(value = "资产id 来源property.id")
	@TableField("`property_id`")
    private Integer propertyId;

	@ApiModelProperty(value = "描述")
	@TableField("`describe`")
    private String describe;

	@ApiModelProperty(value = "操作人")
	@TableField("`user_id`")
	private Long userId;

	@ApiModelProperty(value = "保养时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`upkeep_time`")
	private LocalDateTime upkeepTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`create_time`")
    private LocalDateTime createTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`update_time`")
    private LocalDateTime updateTime;

	@TableField("`delete_flag`")
    private Integer deleteFlag;

}

